package com.gulimall.authserver.feign;

import com.guigui.common.utils.R;
import com.gulimall.authserver.dto.LoginDto;
import com.gulimall.authserver.dto.RegisterDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("gulimall-member")
public interface MemberFeignServices {
    /**
     * 注册
     */
    @PostMapping("/member/member/register")
    R register(@RequestBody RegisterDto registerDto);

    @PostMapping("/member/member/login")
    R login(@RequestBody LoginDto loginDto);
}
